﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YuShiManageSystem.DATA
{
    class CardService
    {
        private YuShiManageSystem.DATA.DataModel DataModel;
        public CardService(YuShiManageSystem.DATA.DataModel datamodel)
        {
            this.DataModel = datamodel;
        }

        public tb_card GetCardByCode(string code)
        {
            return DataModel.tb_card.Where(c=>c.code==code).FirstOrDefault();
        }
    }
}
